import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import companys from './modules/companys'
import questions from './modules/questions'
import articles from './modules/articles'
import subjects from './modules/subjects'
import directorys from './modules/directorys'
import tags from './modules/tags'
import users from './modules/users'


Vue.use(Vuex)

const store = new Vuex.Store({
  getters,
  modules: {
    companys,
    questions,
    articles,
    subjects,
    directorys,
    tags,
    users
  }
})

export default store
